<h2 class="title">订单管理</h2>
<{if $countsOrders <= 0}>
    <div class="box-none">
        <img src="/resource/www/imgs/box_none_icon.png" class="img">
        <p class="text">抱歉，你还没有订单！</p>

    </div>
    <{else}>
<{foreach from=$orders item="order"}>
<ul class="orders-list">
    <li class="li">
        <div class="one">
            <div class="left fix">
                <img src="<{$order.tourist.userIcon}>" class="tx">
                <span class="name"><{$order.tourist.userName}></span>
                <span class="date"><{"Y.m.d H:i"|@date:$order.created}></span>
            </div>
            <div class="center">
               当前状态
            </div>
            <div class="right">
                操作
            </div>
        </div>
        <div class="two">
            <div class="left"><{$order.title}></div>
            <div class="center"> <{$order.statusName}></div>
            <div class="right">
                <p class="caozuo fix">
                    <a href="/guiderchat/user/<{$order.tourist.userUid}>" class="a">联系游客</a>
                <!--    <a href="/order/remove/<{$order.orderNo}>" class="a">删除</a>-->
                    <a href="javascript:;" class="a" onclick="return order_del_confirm('<{$order.orderNo}>')">删除</a>
                    <a href="/guider/order_detail/<{$order.orderNo}>" class="a">查看</a>
                </p>
            </div>
        </div>
    </li>
<{/foreach}>
</ul>
    <{if $pagination}>
    <{$pagination}>
    <{/if}>
    <{/if}>

    <script>
    $(".yuding").addClass("active");
    $('.guanli').addClass("mactive");
    $('.yuding_nav').addClass("active");
    $('.down-menu').eq(2).show();

    function order_del_confirm(item) {

        layer.confirm('确认删除这条订单吗', {
                btn: ['是的','取消'], //按钮
                title: false,
                area: ['200px', '150px']
            },function(){
                location.href='/order/remove/'+item;
            },function(){
                return;
        });
    }

</script>
